import request from '@/utils/request'

//登录接口
export function login(data) {
    return request({
      url: '/login?loginame='+ data.loginame + '&password=' + data.password + '&code=' + data.code,
      method: 'post'
    })
}

//获取用户详情
export function getUserInfo() {
    return request({
      url: '/login/info',
      method: 'post'
    })
}

//获取路由表接口
export function getMoveRouter(params) {
    return request({
      url: '/menu/getMoveRouter',
      method: 'get',
      params
    })
}